package org.bit.practice02;

public class Demo01 {
    // 创建 10 个线程
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread thread = new Thread(new Runnable() {
                @Override
                public void run() {
                    // 获取单例对象
                    SingletonLazy instance = SingletonLazy.getInstance();
                    System.out.println(instance);
                }
            });
            // 启动线程
            thread.start();
        }
    }
}
